package com.situ.spring.service.impl;

import com.situ.spring.dao.ICourseDao;
import com.situ.spring.service.ICourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

//<bean name="courseService" class="com.situ.spring.service.impl.CourseServiceImpl">
//    <property name="studentDao" ref="studentDao"/>
//</bean>
@Service("courseService")
public class CourseServiceImpl implements ICourseService {
    @Resource(name = "courseDao")
    private ICourseDao courseDao;

    @Override
    public void selectAll() {
        System.out.println("CourseServiceImpl.selectAll");
        courseDao.selectAll();
    }
}
